home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 135
/
Vol 135.iso
/
games
/
bunny_gr.swf
/
scripts
/
frame_57
/
DoAction.as
Wrap
Text File
|
2008-11-12
|
555b
|
24 lines
if(drinks_active < MAX_ACTIVE)
{
call("new_drink");
}
call("move_drinks");
set("/:current_time",getTimer() - eval("/:start_time"));
time = eval("/:MAX_TIME") - int(eval("/:current_time") / "1000");
if("0" >= time)
{
time = "0";
message = "Out of Time!";
gotoAndStop(146);
}
idle_time = getTimer() - idle_start;
if(MAX_IDLE_TIME < idle_time and idle_anim == "0")
{
idle_anim = "1";
idle_start = getTimer();
tellTarget("/bunny")
{
gotoAndPlay("idle" add (random(eval("/:MAX_IDLE_MOVES")) + "1"));
}
}